package com.woniu108.extra.client;

import com.woniu108.carService.commos.model.Result;
import com.woniu108.order.model.dto.OrderServiceDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author yanxi
 */
@FeignClient(name = "order-server",path = "/order")
public interface OrderClient {


    /**
     * 按订单编号精确查询服务订单
     * @param orderServiceNum 服务订单编号
     * @return 订单服务信息dto
     */
    @GetMapping("/orderService/queryOrderServiceByOrderServiceNum/{orderServiceNum}.c")
    public Result<OrderServiceDto> queryOrderServiceByOrderServiceNum(@PathVariable("orderServiceNum")String orderServiceNum);

    @GetMapping("/orderService/finishOrder/{orderNum}.c")
    public Result<String> finishOrder(@PathVariable("orderNum")String orderNum);

}
